<template>
  <div>
    <group>
      <cell v-for="(item, index) in list" v-bind:title="item.label" is-link :key="index" :link="{path: '/work/info/' + item.id}">
      </cell>
    </group>
  </div>
</template>

<script>
  import Group from 'vux/src/components/group/index'
  import Cell from 'vux/src/components/cell/index'

  export default {
    components: {
      Group,
      Cell
    },
    methods: {
      getList () {
        this.$vux.loading.show({
          text: 'Loading'
        })
        let url = 'https://ydt.xy12345.cn/edot/work/guide/selectMoreGuides'
        let param = {
          code: this.$route.params.id
        }
        this.$axios.post(url, this.$qs.stringify(param)).then(response => {
          this.list = response.data.data.results.items
          this.$vux.loading.hide()
        })
      }
    },
    mounted () {
      this.$store.commit('updataTitleStatus', '办事')
      this.getList()
    },
    data () {
      return {
        list: []
      }
    }
  }
</script>

<style scoped>

</style>
